package com.city.domain.house;

import java.util.Objects;

/**
 * @Author: 李顺时
 * @Description: 家庭基本信息表
 * @Date: Create in 16:54 2018/8/13
 * @Modified By:
 * */

public class UserFamilyInfo {

    private int userId;//用户的Id
    private String Name;//户主姓名
    private String tel; //户主联系电话
    private String address; //家庭地址
    private String idCard; // 户主身份证
    private int averIncome; //家庭人均收入
    private String houseHoldName; //房主姓名
    private String houseSource; //房屋来源
    private String liveType; //居住类型
    private String remark; // 备注

    public UserFamilyInfo() {
    }

    public UserFamilyInfo(int userId, String name, String tel, String address, String idCard, int averIncome, String houseHoldName, String houseSource, String liveType, String remark) {
        this.userId = userId;
        Name = name;
        this.tel = tel;
        this.address = address;
        this.idCard = idCard;
        this.averIncome = averIncome;
        this.houseHoldName = houseHoldName;
        this.houseSource = houseSource;
        this.liveType = liveType;
        this.remark = remark;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public int getAverIncome() {
        return averIncome;
    }

    public void setAverIncome(int averIncome) {
        this.averIncome = averIncome;
    }

    public String getHouseHoldName() {
        return houseHoldName;
    }

    public void setHouseHoldName(String houseHoldName) {
        this.houseHoldName = houseHoldName;
    }

    public String getHouseSource() {
        return houseSource;
    }

    public void setHouseSource(String houseSource) {
        this.houseSource = houseSource;
    }

    public String getLiveType() {
        return liveType;
    }

    public void setLiveType(String liveType) {
        this.liveType = liveType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserFamilyInfo that = (UserFamilyInfo) o;
        return userId == that.userId &&
                averIncome == that.averIncome &&
                Objects.equals(Name, that.Name) &&
                Objects.equals(tel, that.tel) &&
                Objects.equals(address, that.address) &&
                Objects.equals(idCard, that.idCard) &&
                Objects.equals(houseHoldName, that.houseHoldName) &&
                Objects.equals(houseSource, that.houseSource) &&
                Objects.equals(liveType, that.liveType) &&
                Objects.equals(remark, that.remark);
    }

    @Override
    public int hashCode() {

        return Objects.hash(userId, Name, tel, address, idCard, averIncome, houseHoldName, houseSource, liveType, remark);
    }

    @Override
    public String toString() {
        return "UserFamilyInfo{" +
                "userId=" + userId +
                ", Name='" + Name + '\'' +
                ", tel='" + tel + '\'' +
                ", address='" + address + '\'' +
                ", idCard='" + idCard + '\'' +
                ", averIncome=" + averIncome +
                ", houseHoldName='" + houseHoldName + '\'' +
                ", houseSource='" + houseSource + '\'' +
                ", liveType='" + liveType + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
